home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-02-20 | 2.8 KB | [ TEXT/KAHL]
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary ).
Confidence Program Detection Match Type Support
66%
dexvert
Compact Compressed (Unix) (archive/compact)
ext
Supported
10%
dexvert
MacBinary (archive/macBinary)
fallback
Supported
1%
dexvert
Text File (text/txt)
fallback
Supported
100%
file
MacBinary II, Sun Feb 20 18:32:03 1994, modified Sun Feb 20 18:32:03 1994, creator Think C, type ASCII, 1913 bytes "SkelGetWindDevice.c" , at 0x7f9 702 bytes resource
default (weak)
99%
file
data
default
74%
TrID
Macintosh plain text (MacBinary)
default
25%
TrID
MacBinary 2
default (weak)
100%
siegfried
fmt/1762 MacBinary (II)
default
100%
lsar
MacBinary
default
id metadata key value macFileType [ TEXT] macFileCreator [ KAHL]
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 00 13 53 6b 65 6c 47 65 | 74 57 69 6e 64 44 65 76 |..SkelGe|tWindDev| |00000010| 69 63 65 2e 63 00 00 00 | 00 00 00 00 00 00 00 00 |ice.c...|........| |00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......| |00000050| 00 00 00 00 00 07 79 00 | 00 02 be a9 8d a3 73 a9 |......y.|......s.| |00000060| 8d a3 73 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..s.....|........| |00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 48 93 00 00 |........|....H...| |00000080| 2f 2a 0d 20 2a 20 47 65 | 74 20 74 68 65 20 64 65 |/*. * Ge|t the de| |00000090| 76 69 63 65 20 63 6f 6e | 74 61 69 6e 69 6e 67 20 |vice con|taining | |000000a0| 6d 6f 73 74 20 6f 66 20 | 61 20 77 69 6e 64 6f 77 |most of |a window| |000000b0| 27 73 20 63 6f 6e 74 65 | 6e 74 20 72 65 63 74 61 |'s conte|nt recta| |000000c0| 6e 67 6c 65 20 61 6e 64 | 20 74 68 65 0d 20 2a 20 |ngle and| the. * | |000000d0| 6c 61 72 67 65 73 74 20 | 75 73 61 62 6c 65 20 72 |largest |usable r| |000000e0| 65 63 74 61 6e 67 6c 65 | 20 6f 6e 20 74 68 61 74 |ectangle| on that| |000000f0| 20 64 65 76 69 63 65 2e | 20 20 49 66 20 74 68 65 | device.| If the| |00000100| 20 64 65 76 69 63 65 20 | 69 73 20 74 68 65 20 6d | device |is the m| |00000110| 61 69 6e 0d 20 2a 20 64 | 65 76 69 63 65 2c 20 74 |ain. * d|evice, t| |00000120| 68 65 20 72 65 63 74 61 | 6e 67 6c 65 20 69 73 20 |he recta|ngle is | |00000130| 61 64 6a 75 73 74 65 64 | 20 6e 6f 74 20 74 6f 20 |adjusted| not to | |00000140| 63 6f 6e 74 61 69 6e 20 | 74 68 65 20 6d 65 6e 75 |contain |the menu| |00000150| 20 62 61 72 20 61 72 65 | 61 2e 0d 20 2a 0d 20 2a | bar are|a.. *. *| |00000160| 20 54 68 65 20 72 65 73 | 75 6c 74 20 69 73 20 75 | The res|ult is u| |00000170| 73 65 64 20 62 79 20 54 | 72 61 6e 73 53 6b 65 6c |sed by T|ransSkel| |00000180| 20 66 6f 72 20 77 69 6e | 64 6f 77 20 7a 6f 6f 6d | for win|dow zoom| |00000190| 69 6e 67 2e 20 20 4e 6f | 72 6d 61 6c 6c 79 2c 20 |ing. No|rmally, | |000001a0| 74 68 65 0d 20 2a 20 63 | 61 6c 6c 65 72 20 61 64 |the. * c|aller ad| |000001b0| 6a 75 73 74 73 20 74 68 | 65 20 74 6f 70 20 6f 66 |justs th|e top of| |000001c0| 20 74 68 65 20 72 65 63 | 74 61 6e 67 6c 65 20 74 | the rec|tangle t| |000001d0| 6f 20 61 63 63 6f 75 6e | 74 20 66 6f 72 20 74 68 |o accoun|t for th| |000001e0| 65 20 74 69 74 6c 65 20 | 62 61 72 0d 20 2a 20 68 |e title |bar. * h| |000001f0| 65 69 67 68 74 2c 20 74 | 68 65 6e 20 69 6e 73 65 |eight, t|hen inse| |00000200| 74 73 20 69 74 20 62 79 | 20 61 20 66 65 77 20 70 |ts it by| a few p| |00000210| 69 78 65 6c 73 20 69 6e | 20 6f 72 64 65 72 20 74 |ixels in| order t| |00000220| 6f 20 6c 65 61 76 65 20 | 61 20 6c 69 74 74 6c 65 |o leave |a little| |00000230| 0d 20 2a 20 73 70 61 63 | 65 20 61 72 6f 75 6e 64 |. * spac|e around| |00000240| 20 74 68 65 20 77 69 6e | 64 6f 77 20 65 64 67 65 | the win|dow edge| |00000250| 73 2e 20 20 53 6b 65 6c | 47 65 74 57 69 6e 64 6f |s. Skel|GetWindo| |00000260| 77 44 65 76 69 63 65 28 | 29 20 69 74 73 65 6c 66 |wDevice(|) itself| |00000270| 20 64 6f 65 73 0d 20 2a | 20 6e 6f 74 20 61 63 63 | does. *| not acc| |00000280| 6f 75 6e 74 20 66 6f 72 | 20 74 68 65 20 74 69 74 |ount for| the tit| |00000290| 6c 65 20 62 61 72 20 68 | 65 69 67 68 74 2e 20 20 |le bar h|eight. | |000002a0| 54 68 61 74 20 72 65 73 | 70 6f 6e 73 69 62 69 6c |That res|ponsibil| |000002b0| 69 74 79 20 69 73 0d 20 | 2a 20 6c 65 66 74 20 77 |ity is. |* left w| |000002c0| 69 74 68 20 74 68 65 20 | 63 61 6c 6c 65 72 2c 20 |ith the |caller, | |000002d0| 77 68 69 63 68 20 63 61 | 6e 20 63 61 6c 6c 20 53 |which ca|n call S| |000002e0| 6b 65 6c 47 65 74 57 69 | 6e 64 54 69 74 6c 65 48 |kelGetWi|ndTitleH| |000002f0| 65 69 67 68 74 28 29 20 | 74 6f 0d 20 2a 20 66 69 |eight() |to. * fi| |00000300| 6e 64 20 74 68 69 73 20 | 6f 75 74 2e 0d 20 2a 0d |nd this |out.. *.| |00000310| 20 2a 20 52 65 74 75 72 | 6e 73 20 74 72 75 65 20 | * Retur|ns true | |00000320| 69 66 20 74 68 65 20 77 | 69 6e 64 6f 77 20 6f 76 |if the w|indow ov| |00000330| 65 72 6c 61 70 73 20 73 | 6f 6d 65 20 64 65 76 69 |erlaps s|ome devi| |00000340| 63 65 20 69 6e 20 69 74 | 73 20 63 75 72 72 65 6e |ce in it|s curren| |00000350| 74 0d 20 2a 20 70 6f 73 | 69 74 69 6f 6e 2e 20 20 |t. * pos|ition. | |00000360| 46 61 6c 73 65 20 63 61 | 6e 20 62 65 20 72 65 74 |False ca|n be ret| |00000370| 75 72 6e 65 64 2c 20 66 | 6f 72 20 69 6e 73 74 61 |urned, f|or insta| |00000380| 6e 63 65 2c 20 69 66 20 | 61 6e 20 61 70 70 6c 69 |nce, if |an appli| |00000390| 63 61 74 69 6f 6e 0d 20 | 2a 20 73 61 76 65 73 20 |cation. |* saves | |000003a0| 64 6f 63 75 6d 65 6e 74 | 20 77 69 6e 64 6f 77 20 |document| window | |000003b0| 70 6f 73 69 74 69 6f 6e | 73 20 61 6e 64 20 61 20 |position|s and a | |000003c0| 64 6f 63 75 6d 65 6e 74 | 20 69 73 20 73 61 76 65 |document| is save| |000003d0| 64 20 77 68 69 6c 65 0d | 20 2a 20 70 6f 73 69 74 |d while.| * posit| |000003e0| 69 6f 6e 65 64 20 6f 6e | 20 61 20 73 65 63 6f 6e |ioned on| a secon| |000003f0| 64 20 6d 6f 6e 69 74 6f | 72 2c 20 74 68 65 6e 20 |d monito|r, then | |00000400| 6f 70 65 6e 65 64 20 6f | 6e 20 61 20 73 79 73 74 |opened o|n a syst| |00000410| 65 6d 20 74 68 61 74 20 | 64 6f 65 73 6e 27 74 0d |em that |doesn't.| |00000420| 20 2a 20 68 61 76 65 20 | 61 20 73 65 63 6f 6e 64 | * have |a second| |00000430| 20 6d 6f 6e 69 74 6f 72 | 2e 0d 20 2a 0d 20 2a 20 | monitor|.. *. * | |00000440| 54 68 65 20 72 65 74 75 | 72 6e 65 64 20 64 65 76 |The retu|rned dev| |00000450| 69 63 65 20 76 61 6c 75 | 65 20 77 69 6c 6c 20 62 |ice valu|e will b| |00000460| 65 20 6e 69 6c 20 6f 6e | 20 73 79 73 74 65 6d 73 |e nil on| systems| |00000470| 20 74 68 61 74 20 64 6f | 6e 27 74 20 68 61 76 65 | that do|n't have| |00000480| 20 47 44 65 76 69 63 65 | 73 0d 20 2a 20 28 69 2e | GDevice|s. * (i.| |00000490| 65 2e 2c 2c 20 74 68 61 | 74 20 64 6f 6e 27 74 20 |e.,, tha|t don't | |000004a0| 73 75 70 70 6f 72 74 20 | 43 6f 6c 6f 72 20 51 75 |support |Color Qu| |000004b0| 69 63 6b 44 72 61 77 29 | 2c 20 65 76 65 6e 20 69 |ickDraw)|, even i| |000004c0| 66 20 74 68 65 20 66 75 | 6e 63 74 69 6f 6e 20 72 |f the fu|nction r| |000004d0| 65 73 75 6c 74 0d 20 2a | 20 69 73 20 74 72 75 65 |esult. *| is true| |000004e0| 2e 0d 20 2a 0d 20 2a 20 | 49 66 20 74 68 65 20 77 |.. *. * |If the w| |000004f0| 69 6e 64 6f 77 20 64 6f | 65 73 20 6e 6f 74 20 6f |indow do|es not o| |00000500| 76 65 72 6c 61 70 20 61 | 6e 79 20 64 65 76 69 63 |verlap a|ny devic| |00000510| 65 2c 20 74 68 65 20 64 | 65 76 69 63 65 20 61 6e |e, the d|evice an| |00000520| 64 20 64 65 76 52 65 63 | 74 20 61 72 67 75 6d 65 |d devRec|t argume| |00000530| 6e 74 73 0d 20 2a 20 61 | 72 65 20 66 69 6c 6c 65 |nts. * a|re fille| |00000540| 64 20 69 6e 20 77 69 74 | 68 20 74 68 65 20 76 61 |d in wit|h the va| |00000550| 6c 75 65 73 20 66 6f 72 | 20 74 68 65 20 6d 61 69 |lues for| the mai| |00000560| 6e 20 64 65 76 69 63 65 | 2e 20 20 54 68 65 20 72 |n device|. The r| |00000570| 65 63 74 61 6e 67 6c 65 | 20 63 61 6e 0d 20 2a 20 |ectangle| can. * | |00000580| 62 65 20 75 73 65 64 20 | 74 6f 20 70 6f 73 69 74 |be used |to posit| |00000590| 69 6f 6e 20 74 68 65 20 | 77 69 6e 64 6f 77 20 73 |ion the |window s| |000005a0| 6f 20 69 74 20 63 61 6e | 20 62 65 20 6d 61 64 65 |o it can| be made| |000005b0| 20 76 69 73 69 62 6c 65 | 2e 0d 20 2a 0d 20 2a 20 | visible|.. *. * | |000005c0| 49 66 20 74 68 65 20 63 | 61 6c 6c 65 72 20 69 73 |If the c|aller is| |000005d0| 20 6e 6f 74 20 69 6e 74 | 65 72 65 73 74 65 64 20 | not int|erested | |000005e0| 69 6e 20 74 68 65 20 64 | 65 76 69 63 65 20 6f 72 |in the d|evice or| |000005f0| 20 72 65 63 74 61 6e 67 | 6c 65 2c 20 6e 69 6c 0d | rectang|le, nil.| |00000600| 20 2a 20 63 61 6e 20 62 | 65 20 70 61 73 73 65 64 | * can b|e passed| |00000610| 20 69 6e 73 74 65 61 64 | 20 6f 66 20 74 68 65 20 | instead| of the | |00000620| 61 64 64 72 65 73 73 20 | 6f 66 20 61 20 76 61 72 |address |of a var| |00000630| 69 61 62 6c 65 2e 0d 20 | 2a 0d 20 2a 20 52 65 66 |iable.. |*. * Ref| |00000640| 65 72 65 6e 63 65 73 3a | 20 54 4e 20 54 42 20 33 |erences:| TN TB 3| |00000650| 30 2c 20 48 49 4e 20 36 | 2c 20 48 49 4e 20 37 2e |0, HIN 6|, HIN 7.| |00000660| 0d 20 2a 2f 0d 0d 23 20 | 69 6e 63 6c 75 64 65 09 |. */..# |include.| |00000670| 22 54 72 61 6e 73 53 6b | 65 6c 2e 68 22 0d 0d 0d |"TransSk|el.h"...| |00000680| 70 61 73 63 61 6c 20 42 | 6f 6f 6c 65 61 6e 0d 53 |pascal B|oolean.S| |00000690| 6b 65 6c 47 65 74 57 69 | 6e 64 6f 77 44 65 76 69 |kelGetWi|ndowDevi| |000006a0| 63 65 20 28 57 69 6e 64 | 6f 77 50 74 72 20 77 69 |ce (Wind|owPtr wi| |000006b0| 6e 64 2c 20 47 44 48 61 | 6e 64 6c 65 20 2a 67 64 |nd, GDHa|ndle *gd| |000006c0| 2c 20 52 65 63 74 20 2a | 64 65 76 52 65 63 74 29 |, Rect *|devRect)| |000006d0| 0d 7b 0d 52 65 63 74 09 | 72 3b 0d 42 6f 6f 6c 65 |.{.Rect.|r;.Boole| |000006e0| 61 6e 09 69 73 4d 61 69 | 6e 3b 0d 42 6f 6f 6c 65 |an.isMai|n;.Boole| |000006f0| 61 6e 09 72 65 73 75 6c | 74 3b 0d 0d 09 2f 2a 20 |an.resul|t;.../* | |00000700| 67 65 74 20 77 69 6e 64 | 6f 77 20 63 6f 6e 74 65 |get wind|ow conte| |00000710| 6e 74 20 72 65 63 74 20 | 69 6e 20 67 6c 6f 62 61 |nt rect |in globa| |00000720| 6c 20 63 6f 6f 72 64 69 | 6e 61 74 65 73 20 2a 2f |l coordi|nates */| |00000730| 0d 0d 09 53 6b 65 6c 47 | 65 74 57 69 6e 64 43 6f |...SkelG|etWindCo| |00000740| 6e 74 65 6e 74 52 65 63 | 74 20 28 77 69 6e 64 2c |ntentRec|t (wind,| |00000750| 20 26 72 29 3b 0d 09 72 | 65 73 75 6c 74 20 3d 20 | &r);..r|esult = | |00000760| 53 6b 65 6c 47 65 74 52 | 65 63 74 44 65 76 69 63 |SkelGetR|ectDevic| |00000770| 65 20 28 26 72 2c 20 67 | 64 2c 20 64 65 76 52 65 |e (&r, g|d, devRe| |00000780| 63 74 2c 20 26 69 73 4d | 61 69 6e 29 3b 0d 09 69 |ct, &isM|ain);..i| |00000790| 66 20 28 69 73 4d 61 69 | 6e 20 26 26 20 64 65 76 |f (isMai|n && dev| |000007a0| 52 65 63 74 20 21 3d 20 | 28 52 65 63 74 20 2a 29 |Rect != |(Rect *)| |000007b0| 20 6e 69 6c 29 0d 09 09 | 64 65 76 52 65 63 74 2d | nil)...|devRect-| |000007c0| 3e 74 6f 70 20 2b 3d 20 | 53 6b 65 6c 51 75 65 72 |>top += |SkelQuer| |000007d0| 79 20 28 73 6b 65 6c 51 | 4d 42 61 72 48 65 69 67 |y (skelQ|MBarHeig| |000007e0| 68 74 29 3b 0d 09 72 65 | 74 75 72 6e 20 28 72 65 |ht);..re|turn (re| |000007f0| 73 75 6c 74 29 3b 0d 7d | 0d 00 00 00 00 00 00 00 |sult);.}|........| |00000800| 00 00 01 00 00 00 02 78 | 00 00 01 78 00 00 00 46 |.......x|...x...F| |00000810| 1a a5 15 89 44 39 99 04 | 3b c7 08 60 a0 00 e3 99 |....D9..|;..`....| |00000820| 8b 20 40 05 4e 00 09 59 | c0 08 83 49 01 b1 c0 0c |. @.N..Y|...I....| |00000830| 13 53 6b 65 6c 47 65 74 | 57 69 6e 64 44 65 76 69 |.SkelGet|WindDevi| |00000840| 63 65 2e 63 02 00 00 00 | 50 61 72 74 53 49 54 78 |ce.c....|PartSITx| |00000850| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......| |00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000870| 00 00 a9 9f 75 93 00 00 | 00 00 00 00 02 be c0 70 |....u...|.......p| |00000880| a2 c2 00 0c d4 10 04 a8 | 2a 04 42 10 0d c2 00 02 |........|*.B.....| |00000890| 08 40 92 32 a6 68 18 29 | 17 1f 91 72 3b 91 ab 4e |.@.2.h.)|...r;..N| |000008a0| b4 ab 56 73 0e 06 00 00 | 2a 00 00 6a 20 00 44 c0 |..Vs....|*..j .D.| |000008b0| a2 01 90 ac 44 10 08 bd | ca 01 4a 50 08 ce 0a 08 |....D...|..JP....| |000008c0| bb 60 08 ce 1a 08 4c 20 | 37 60 00 ac 8d 91 91 6c |.`....L |7`.....l| |000008d0| d1 1c a6 8a aa 4a 20 04 | 66 c0 01 36 40 22 40 70 |.....J .|f..6@"@p| |000008e0| a2 b9 08 08 c1 40 03 28 | 29 04 30 30 00 ee 0a af |.....@.(|).00....| |000008f0| 22 20 00 29 7a a2 60 20 | 02 a0 9a af eb 2a ab 42 |" .)z.` |.....*.B| |00000900| 00 00 01 52 00 3c 00 19 | 02 26 01 28 00 18 00 00 |...R.<..|.&.(....| |00000910| 06 0b 00 00 06 0b 00 00 | 00 1a 00 04 00 09 00 00 |........|........| |00000920| 06 4d 6f 6e 61 63 6f 00 | 00 00 00 00 00 00 00 00 |.Monaco.|........| |00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000960| 04 00 00 03 00 00 00 48 | 00 48 00 00 00 00 02 d8 |.......H|.H......| |00000970| 02 28 ff e1 ff e2 02 f9 | 02 46 03 47 05 28 03 fc |.(......|.F.G.(..| |00000980| 00 02 00 00 00 48 00 48 | 00 00 00 00 02 d8 02 28 |.....H.H|.......(| |00000990| 00 01 00 00 00 64 00 00 | 00 01 00 03 03 03 00 00 |.....d..|........| |000009a0| 00 01 27 0f 00 01 00 01 | 00 00 00 00 00 00 00 00 |..'.....|........| |000009b0| 00 00 00 00 68 08 00 19 | 01 90 00 00 00 00 00 00 |....h...|........| |000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 04 00 09 00 00 |........|........| |000009e0| 06 4d 6f 6e 61 63 6f 08 | 00 00 00 00 00 00 00 00 |.Monaco.|........| |000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000a00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000a10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000a20| 00 04 01 00 00 01 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000a50| 00 00 00 00 00 00 00 00 | 00 1e 00 01 00 00 06 0e |........|........| |00000a60| 00 00 06 21 13 53 6b 65 | 6c 47 65 74 57 69 6e 64 |...!.Ske|lGetWind| |00000a70| 6f 77 44 65 76 69 63 65 | 00 00 01 00 00 00 02 78 |owDevice|.......x| |00000a80| 00 00 01 78 00 00 00 46 | 00 3b 9c 74 11 a2 00 00 |...x...F|.;.t....| |00000a90| 00 1c 00 46 00 01 42 42 | 53 52 00 00 00 12 4d 50 |...F..BB|SR....MP| |00000aa0| 53 52 00 00 00 1e 01 03 | ff ff 00 00 00 00 00 00 |SR......|........| |00000ab0| 00 00 03 ef ff ff 00 00 | 01 56 00 00 00 00 00 00 |........|.V......| |00000ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| +--------+-------------------------+-------------------------+--------+--------+